import request from "@/utils/request";

// 获取路由
export function getRouters() {
    return request({
        url: '/menu/getRouters',
        method: 'get'
    })
}

//获取全部权限菜单树形列表
export function getMenuTree() {
    return request({
        url: '/menu/treeSelect',
        method: 'get'
    })
}

export function getMenuTreeByRole(roleId) {
    return request({
        url: '/menu/treeSelectByRole/' + roleId,
        method: 'get'
    })
}
